package com.cx.mall.demo.service.impl;

import com.cx.mall.demo.service.UserService;
import org.springframework.stereotype.Service;

/**
 * 用户接口实现类
 */
@Service
public class UserServiceImpl implements UserService {
    @Override
    public void save() {
        System.out.println("新增用户信息");
    }

    @Override
    public void update() {
        System.out.println("修改用户信息");
    }
    public Boolean delete(int id) {
        boolean flag = false;
        if(1 / id == 1){
            flag = true;
        }
        System.out.println("删除用户信息");
        return flag;
    }
    public int find(int id){
        System.out.println("查询用户信息:" + id);
        return 1;
    }
}

